<div class="mates view">
<h2><?php  __('Mate');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mate['Mate']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Studentinfo Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mate['Mate']['studentinfo_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Matestatus'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($mate['Matestatus']['name'], array('controller' => 'matestatuses', 'action' => 'view', $mate['Matestatus']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fio'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mate['Mate']['fio']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passport Data'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $mate['Mate']['passport_data']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Mate', true), array('action' => 'edit', $mate['Mate']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Mate', true), array('action' => 'delete', $mate['Mate']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $mate['Mate']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Mates', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Mate', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Students', true), array('controller' => 'students', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Student', true), array('controller' => 'students', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Matestatuses', true), array('controller' => 'matestatuses', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Matestatus', true), array('controller' => 'matestatuses', 'action' => 'add')); ?> </li>
	</ul>
</div>
